import java.io.*;

public class Test7 {
    public static void main(String[] args) throws IOException {
        String fileName = "D:\\hello.txt";

        try {
            BufferedReader in = new BufferedReader(new FileReader(fileName));

            String line = in.readLine();

            while (line != null) {
                System.out.println(line);
                line = in.readLine();
            }

            in.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

    }
}
